Go Back   Pligg CMS Forum > Pligg Development > Modification Tutorials

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-07-2006, 04:29 PM
New Pligger
 
Join Date: Feb 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
"Submit story" link on queued stories page

Hi All,

I have modified my installation of Pligg Beta 5 to display the "Submit story" button not only on the frontpage, but also on the queued page.

I figured it would be handy to have that button there also, as people who go through the queue, may come up with something and I do not want them to have to go back to the front page to submit. I think the submit function should be available at the click of a button throughout the site, to encourage people to submit new stories.

To do this, you have to modify shakeit.php. It's really easy.

In shakeit.php, find this piece of code:

Code:
function do_sidebar_shake() {
	global $db, $dblang, $globals;

	echo '<div id="sidebar">';
	echo '<div class="note-temp" id="note-temp">' . "\n";
	echo '<p>'._(PLIGG_Visual_Pligg_Queued_Message).'</p></div>';
	echo '<ul class="main-menu"><li><div class="boxed"><div>';
	echo '<span><strong>'._(PLIGG_Visual_Pligg_Categories).'</strong></span>';
	echo '<ul class="category-list">';
and change it do this:

Code:
function do_sidebar_shake() {
	global $db, $dblang, $globals;

	echo '<div id="sidebar">';
	echo '<div class="note-temp" id="note-temp">' . "\n";
	echo '<p>'._(PLIGG_Visual_Pligg_Queued_Message).'</p></div>';
	echo '<ul class="main-menu">';
	echo '<li id="main-submit"><a href="/submit.php">Submit a new story</a></li>';
	echo '<li><div class="boxed"><div>';
	echo '<span><strong>'._(PLIGG_Visual_Pligg_Categories).'</strong></span>';
	echo '<ul class="category-list">';
That did the trick for me... hope you like it.

Best,
Arno
Reply With Quote
Reply

Thread Tools
Display Modes
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Similar Threads
Thread Thread Starter Forum Replies Last Post
Submit And Show A Link On A Separate Page Only WebWatch Modification Tutorials 0 12-19-2007 06:00 PM
Special message if no stories on upcoming page? tangmonkey General Help 1 11-15-2007 12:59 PM
edit story and outgoing link returns blank page crusty General Help 0 08-23-2007 02:30 PM
Pligg beta 9.5 [updated] kbeeveer46 Current Version 0 04-29-2007 09:58 PM
Paging doesn't work for queued stories qiang123 Bug Report 3 03-16-2006 01:08 PM


Search Engine Friendly URLs by vBSEO 3.2.0