vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   [AJAX] vBShout v2 on your vBadvanced CMPS v2! (https://vborg.vbsupport.ru/showthread.php?t=97497)

FleaBag 10-04-2005 08:33 PM

Basically I think you've hit it on the head... Here's how I see it. vB sessions obviously update every time a page is loaded. For instance I used to have a frame with a news.php file [custom code] pulling my news in a different format. This page was obviously loaded after the index.php, so Who's On-line picked up my location as news.php. Now obviously this is working slightly differently with vBShout, as it's pointing to index.php, but say's you're viewing vbshout.php. View your vbshout.php in your browser, looks like XML to me. The template on the CMPS, and Forum Home are including that XML file to get the shouts onto the page. As a result, the session makes vB think you're on vbshout.php [which is right, because it was the last vB page loaded] yet you are still in fact on index.php [the reason for it linking back to that page]. I think vB is the problem, at least when handling the way vBShout works, and the way sessions are generated needs to be updated.

JJR512 10-04-2005 08:55 PM

I was mistaken, I just realized. It's not pointing to index.php even though it says viewing the shoutbox. It is, in fact, pointing to vbshout.php.

I wonder if there's a way to make index.php (or the main cmps PHP file) send new session info or update session info at the END of the script, in other words after vbshout.php has been called?

FleaBag 10-04-2005 09:59 PM

This is a stab in the dark but I'm guessing a session is updated around the time global.php is called. So every time global.php is called you'll be recorded as viewing the .php file in which that reference runs. So as it stands, I don't see how it could be sorted. I'm not a coder though heh.

Brandon Sheley 10-05-2005 04:51 AM

any news on removing the Time ?
thx

Lizard King 10-05-2005 07:52 AM

Is there any way to move the shoutbox to right or left corner by removing the font and color selector ?

FleaBag 10-05-2005 09:54 AM

The font and colour selector are not present in this version... With regard to moving the time, I didn't get a chance last night sorry.

Gizmo5h1t3 10-05-2005 07:01 PM

one more thing...the hack works a treat...apart from thoe mentioned.

but....

smilies show up as red "x"`s.....and the member.php issue is still a problem..click on a members name, and i get a page cannot be displayed error

FleaBag 10-05-2005 09:32 PM

Still not looked at removing the date - sorry.

Gizmo, where are your forums on your server, and where is your CMPS? Did you edit any of the template?

Scotty2k 10-05-2005 09:52 PM

@FleaBag .. thx 4 publishing our modification here.. more user more ideas :-)


I tried to fix the member.php problem ... here is my result:

Find in the template forumhome_vbshout_shout:

PHP Code:

<if condition="$Shout[s_by]">
<
a href='member.php?{$session['sessionurl_q']}u={$Shout['s_by']}'>
</if>
{
$Shout['username']}<if condition="$Shout[s_by]"></a>
</if>:</if> 

and replace it with
(change YOUR-FORUM-PATH/ to your forumfolder!!!
example: forum/member.php?{$session...... )

PHP Code:

<if condition="$Shout[s_by]">
<
a href='YOUR-FORUM-PATH/member.php?{$session['sessionurl_q']}u={$Shout['s_by']}'>
</if>
{
$Shout['username']}<if condition="$Shout[s_by]"></a>
</if>:</if> 

If you want to use the vbshout on your forum pages and in vbadvanced the template must be changed to full path to your forum .. see it in next Code-BOX

PHP Code:

<if condition="$Shout[s_by]">
<
a href='http://www.YOURDOMAIN.com/YOUR-FORUM-PATH/member.php?{$session['sessionurl_q']}u={$Shout['s_by']}'>
</if>
{
$Shout['username']}<if condition="$Shout[s_by]"></a>
</if>:</if> 


I could not test it yet, but it should work .. please give us feedback, perhaps FleaBag can edit his first Thread with this changes.

rrokdoka 10-06-2005 01:11 AM

It works great and i love the instructions you guys put up, but i dont see the Smilies link. Is there a way to add it?


All times are GMT. The time now is 04:20 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01556 seconds
  • Memory Usage 1,746KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete