Go Back   Pligg Forum > Pligg Development > Pligg Mods
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-07-2006, 03:29 PM
aetjansen aetjansen is offline
New Pligger
 
Join Date: Feb 2006
Posts: 7
Downloads: 0
Uploads: 0
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

vB 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
user page login link is wrong Xanatos Bug Report 1 01-08-2006 11:36 AM


LinkBacks Enabled by vBSEO 3.0.0