vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Miscellaneous Hacks - Unread Posts and Reputation Comments (welcome box) (https://vborg.vbsupport.ru/showthread.php?t=123886)

Ivander 08-15-2006 02:38 PM

Can someone explain how i can add IP Data for User X ?

Example:

Welcome Paul (xx.xx.xx.xx)

Xx= Current IP of Paul


*excuse my bad English :(

Paul M 08-15-2006 05:28 PM

Quote:

Originally Posted by Ivander
Can someone explain how i can add IP Data for User X ?

Welcome Paul (xx.xx.xx.xx)

Xx= Current IP of Paul

Set the option to 'Yes' in the settings.

Paul M 08-15-2006 05:33 PM

Quote:

Originally Posted by Muellmann
Go into the XML-File and replace

Code:

$search_text = '</strong><br />';
with

Code:

$search_text = '\$vbphrase[last_visited_x_at_y]</phrase>';

This won't work, the template cache is not the same as the template itself - it is actually php code, you cannot search for vb template specific stuff like <if> and <phrase>.

Ivander 08-15-2006 07:06 PM

@Paul

Can you also add more info.Example

Number of unread Post: (already done)
new feature

- X new Post and y new Threads after your Last Visit

louis_chypher 08-15-2006 07:16 PM

I changed to location of where the link shows up by putting "<!-- Paul M, unread Post Count -->' at the template location I want the mod to be displayed.
then I changed the search text to:
Code:

$search_text = '<!-- Paul M, unread Post Count -->';
I also properly edited the line
Code:

$unread = construct_phrase('<a href=\"search.php?do=getnew\">'.$vbphrase['unread_posts'].'</a><br />',$postcount['unread']);
to reflect the proper html requirements of the selected location.

(The above only represents an example the changes of that I did to change the location of this modifications displayed info)

I can see why the author would not be supportive of moving the location due to the rather large possibilities of HTML combinations that exist in the templates.

This mod should be part of vB. Of all the mods that I've added to the site this mod ranks up there with the journal as the most praised and its only been on the site for a day. Thanks!

Ivander 08-15-2006 07:36 PM

Quote:

Originally Posted by Paul M
Set the option to 'Yes' in the settings.

Wrong Post ?

I am searching for a IP Solution after the Username ;)

Virtex-II 08-15-2006 08:48 PM

Quote:

Originally Posted by louis_chypher
I changed to location of where the link shows up by putting "<!-- Paul M, unread Post Count -->' at the template location I want the mod to be displayed.
then I changed the search text to:
Code:

$search_text = '<!-- Paul M, unread Post Count -->';
I also properly edited the line
Code:

$unread = construct_phrase('<a href=\"search.php?do=getnew\">'.$vbphrase['unread_posts'].'</a><br />',$postcount['unread']);
to reflect the proper html requirements of the selected location.

(The above only represents an example the changes of that I did to change the location of this modifications displayed info)

I can see why the author would not be supportive of moving the location due to the rather large possibilities of HTML combinations that exist in the templates.

This mod should be part of vB. Of all the mods that I've added to the site this mod ranks up there with the journal as the most praised and its only been on the site for a day. Thanks!


That was my solution too, plus I changed it a little bit more to make it look like the "Private Messages" line!!!

Paul M 08-15-2006 10:03 PM

Quote:

Originally Posted by Ivander
Wrong Post ?

I am searching for a IP Solution after the Username ;)

Sorry, yes, wrong mod. What you want is not related to this modification and you need to start a seperate thread.

HMBeaty 08-16-2006 02:54 AM

Quote:

Originally Posted by Muellmann
Customize just the default Searchtext for proper Replacement

Find this in Paul's XML-Product-File:
Code:

$search_text = '</strong><br />';
Replace with:
Code:

$search_text = '\$vbphrase[private_messages_nav]</phrase></if>';
Find this:
Code:

$unread = construct_phrase('<a href=\"search.php?do=getnew\">'.$vbphrase['unread_posts'].'</a><br />',$postcount['unread']);
Replace with (just to ensure to have it in the new Line):
Code:

$unread = construct_phrase('<br /><a href=\"search.php?do=getnew\">'.$vbphrase['unread_posts'].'</a><br />',$postcount['unread']);
It should normally work (untested)!
Save with Notepad - Re-Import Hack, Allow overwrite 'yes', refresh Browser :)

THANK YOU!!! At least YOU read and totally understood my post

HMBeaty 08-16-2006 03:05 AM

And it didn't work :(


All times are GMT. The time now is 09:26 PM.

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.03643 seconds
  • Memory Usage 1,749KB
  • 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
  • (10)bbcode_code_printable
  • (6)bbcode_quote_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