Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Post Installation Help
Author Message
angloswede
Hangin' Around



Joined: Feb 10, 2007
Posts: 27

PostPosted: Sat Jan 01, 2011 8:18 am Reply with quote

My apologies if I have posted my question in the wrong forum.

Bit hard to explain, I'll try to keep it as simple as possible
BBtoNuke version is 2.0.23, PHP-Nuke version is rn2.40.01

After somone has posted a reply in the forums or created a new post, I have edited the overall_header.tpl file with {META} at the top pf the file so they automatically get taken back to the forum they have just posted in after about 3 seconds.

How can I edit the 'information page' after they have clicked on 'submit' to display some text to say they will get automatically redirected?
Can't seem to find the right file I need to edit

Happy New Year
Thanks
Mark
 
View user's profile Send private message
Palbin
Site Admin



Joined: Mar 30, 2006
Posts: 2583
Location: Pittsburgh, Pennsylvania

PostPosted: Sat Jan 01, 2011 1:03 pm Reply with quote

The end of function submit_post() in modules/Forums/includes/functions_post.php

Code:


        $meta = '<meta http-equiv="refresh" content="3;url=' . append_sid("viewtopic.$phpEx?" . POST_POST_URL . "=" . $post_id) . '#' . $post_id . '">';
        $message = $lang['Stored'] . '<br /><br />' . sprintf($lang['Click_view_message'], '<a href="' . append_sid("viewtopic.$phpEx?" . POST_POST_URL . "=" . $post_id) . '#' . $post_id . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_forum'], '<a href="' . append_sid("viewforum.$phpEx?" . POST_FORUM_URL . "=$forum_id") . '">', '</a>');

_________________
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan. 
View user's profile Send private message
angloswede







PostPosted: Sun Jan 02, 2011 2:55 pm Reply with quote

Many thanks for that Palbin.
However....having a bit of trouble getting the text in the right place
I just used the following on a new line under the above code:
echo "<p align='middle'> You will automatically be redirected to your message after 3 seconds";

Ideally I would like it placed under 'your message has been entered successfully'
How would I do that?
Thanks
 
killing-hours
RavenNuke(tm) Development Team



Joined: Oct 01, 2010
Posts: 438
Location: Houston, Tx

PostPosted: Sun Jan 02, 2011 9:01 pm Reply with quote

I don't use forums on my site so I can't test this nor can I see the page when it's actually viewed in a browser so I'm flying blind here...but looking at the code ... I think your message would go between the two <br />'s just after "$lang['Stored']"

i.e.

Code:
$message = $lang['Stored'] . '<br /> YOUR MESSAGE HERE <br /> etc etc etc


I think that's what you're looking for. Hope that helps.

_________________
Money is the measurement of time - Me
"You can all go to hell…I’m going to Texas" -Davy Crockett 
View user's profile Send private message
angloswede







PostPosted: Mon Jan 03, 2011 1:41 am Reply with quote

Very Happy
That worked a treat, thank you very much!
 
killing-hours







PostPosted: Mon Jan 03, 2011 8:43 am Reply with quote

Glad it worked for you!! You're very welcome.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Post Installation Help

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©