vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Major Additions - MySmilies VB (https://vborg.vbsupport.ru/showthread.php?t=135336)

vBulletin THEN DAYLIGHT 01-07-2007 10:05 PM

Fantastic Mod.

How could I make this available to just my premium members?

Kentaurus 01-07-2007 10:18 PM

Quote:

Originally Posted by vBulletin THEN DAYLIGHT (Post 1152891)
Fantastic Mod.

How could I make this available to just my premium members?

I suppose your premium members are in a single usergroup, only give permissions to that usergroup.

basilrath 01-08-2007 07:26 AM

do it as a promoted group , then premium who are in it are ok those who aspire to or pay towards are therefore eligble when you have stipulated within that promotion goup

Cees 01-08-2007 09:01 AM

Hi
I followed the read me , and did everything but it doesnt work... I cant see my smilies in the usercp
What im doing wrong?

Kentaurus 01-08-2007 04:28 PM

Quote:

Originally Posted by Cees (Post 1153430)
Hi
I followed the read me , and did everything but it doesnt work... I cant see my smilies in the usercp
What im doing wrong?

You are probably missing a template modification. You can always access mysmiles at: http://YOUR_FORUM/mysmiliesvb.php

Martin-TMGRS 01-09-2007 12:45 PM

Quote:

Originally Posted by Kentaurus (Post 1152824)
Do you get any error message? Does the page only reload without deleting the smilie?

No I dont get any error message. Yes the page just reloads with the same icon there

Cees 01-09-2007 02:01 PM

Quote:

Originally Posted by Kentaurus (Post 1153751)
You are probably missing a template modification. You can always access mysmiles at: http://YOUR_FORUM/mysmiliesvb.php

Ok uninstall them, install them again i used the read me file, followed the steps, and changed the following rules:
Step 5. Template modifications
===================================
In the template USERCP_SHELL
Find
-------------------
<tr>
<td class="thead">$vbphrase[miscellaneous]</td></tr>
Replace it with
-------------------
<tr>
<td class="thead">$vbphrase[mysmiliesvb_mysmilies]</td>
</tr>
<tr>
<td class="$navclass[mysmiliesvb]" nowrap="nowrap"><a class="smallfont" href="mysmiliesvb.php?$session[sessionurl]">$vbphrase[mysmiliesvb_mysmilies]</a></td>
</tr>
<tr>
<td class="thead">$vbphrase[miscellaneous]</td>
</tr>

IN the template navbar
Find
-------------------
<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editoptions">$vbphrase[edit_options]</a></td></tr>
Replace it with
-------------------
<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editoptions">$vbphrase[edit_options]</a></td></tr>
<tr><td class="vbmenu_option"><a href="mysmiliesvb.php?$session[sessionurl]">$vbphrase[mysmiliesvb_mysmilies]</a></td></tr>

DONE!!!

Thats all. I thougt, but it isnt working. :confused: If I use the direct url it works, but i dont see them in any usercp


Maybe im missing something ( i use vb since a short time:rolleyes: ) but i dont know what i,m missing

Greetz

cheesegrits 01-09-2007 11:14 PM

Kentaurus ... do you have any kind of standard guidelines for coders who want to support MySmilies in other mods?

-- hugh

Kentaurus 01-10-2007 05:00 AM

Quote:

Originally Posted by cheesegrits (Post 1155028)
Kentaurus ... do you have any kind of standard guidelines for coders who want to support MySmilies in other mods?

-- hugh

The code for parsing the smilies is inside bbcode_parse, the routine that vbulletin uses for parsing bbcodes, smilies, and parsing any kind of post content. Most hacks use a call to bbcode_parse, via using a BBcode parser class that is already available or creating a new one.

Because of that, the MySmilies functionality is already there. It's just that it's not being called because the hack needs to know that the userid is, the user that owns the smilies, that is. Since I didn't want to modify the function call to the bbcode_parse functions I used a global variable instead of adding parameters to the function. This is by far not the best design approach, but it is the most flexible since it requires no code modifications.

For any other hack, before your call to bbcode_parse, issue a:

$GLOBALS['mysmiliesvb_userid'] = USERID;

Where userid is the id of the user that owns the smilies. That would vary depending on the context, $vbulletin->userinfo['userid'] holds the user that is currently logged in, but most of the times that's not good, since the custom smilies are user-based then each hack needs to figure out, depending on the context, what user to store in the global variable.

After the bbcode_parse call, I usually do an unset($GLOBALS['mysmiliesvb_userid']). This is not required, it's only polite, to clean up the global variable (since nobody else should be using it after the parsing).

Feel free to PM me if you want me to look at any hack and check if MySmilies could be enabled. Most of the times, if the hack keeps a userid around, it's really easy, and just one line of code.

Kentaurus 01-10-2007 05:03 AM

Quote:

Originally Posted by Cees (Post 1154593)
Ok uninstall them, install them again i used the read me file, followed the steps, and changed the following rules:
Step 5. Template modifications
===================================
In the template USERCP_SHELL
Find
-------------------
<tr>
<td class="thead">$vbphrase[miscellaneous]</td></tr>
Replace it with
-------------------
<tr>
<td class="thead">$vbphrase[mysmiliesvb_mysmilies]</td>
</tr>
<tr>
<td class="$navclass[mysmiliesvb]" nowrap="nowrap"><a class="smallfont" href="mysmiliesvb.php?$session[sessionurl]">$vbphrase[mysmiliesvb_mysmilies]</a></td>
</tr>
<tr>
<td class="thead">$vbphrase[miscellaneous]</td>
</tr>

IN the template navbar
Find
-------------------
<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editoptions">$vbphrase[edit_options]</a></td></tr>
Replace it with
-------------------
<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editoptions">$vbphrase[edit_options]</a></td></tr>
<tr><td class="vbmenu_option"><a href="mysmiliesvb.php?$session[sessionurl]">$vbphrase[mysmiliesvb_mysmilies]</a></td></tr>

DONE!!!

Thats all. I thougt, but it isnt working. :confused: If I use the direct url it works, but i dont see them in any usercp


Maybe im missing something ( i use vb since a short time:rolleyes: ) but i dont know what i,m missing

Greetz


And is that the current sytle that is being used for the forums? The replacements, if done right, add the links to MySmilies :) You can also try adding a link at the header, or the forumhome... or anywhere for testing.

deeoo 01-10-2007 04:42 PM

Truly great mod!

imported_Psybadek 01-10-2007 10:50 PM

Well I installed it, installed the product and language, and everythings in spanish, and my old smilies dont work now, there arent any custom ones yet.

Help!

coderphp 01-10-2007 11:22 PM

nice hack... installed

Kentaurus 01-10-2007 11:52 PM

Quote:

Originally Posted by imported_Psybadek (Post 1155838)
Well I installed it, installed the product and language, and everythings in spanish, and my old smilies dont work now, there arent any custom ones yet.

Help!

Don't install the language if you don't want it to be in spanish... that's optional. The default is english.

Your smilies shouldn't stop working... this hack only share with the normal smilies the name. No smilies code is overriden. Do you have an example? Was the parse smilies option checked?

imported_Psybadek 01-11-2007 08:21 AM

Wheres it at, cause I dont know. Everything in the ACP is in spanish, I've managed to change the user side to English, but everything else, got no clue.

dbembibre 01-11-2007 08:45 AM

Please update the plugin to insert the templates as cached in global.php

Code:

Below Standard:redirect insert your templates
  'STANDARD_REDIRECT',
        'editor_smilie',
        'editor_smiliebox_row',
        'editor_smiliebox_straggler',
        'mysmilies_imagebit'

Because this are 4 extra queries in


Por cierto el hack esta muy bien, me ha funcionado sin problemas, saludos

bollie 01-12-2007 08:42 AM

Quote:

Sadly, I'm still unable to reproduce this problem. Did you try with the latest 1.03 version? A javascript error that might have been the problem was fixed.
Yes i try with the latest 1.03 version.
Now error to showthread & newreply
I if not upload smilie

Kentaurus 01-13-2007 04:36 PM

Quote:

Originally Posted by bollie (Post 1156866)
Yes i try with the latest 1.03 version.
Now error to showthread & newreply
I if not upload smilie

I'm sorry. Seems that you find an incompatibility somehow. Either with another hack installed, or with some setup for your browser. Since I cannot reproduce the error I also don't know how to fix it. It just doesn't happen to me, and I've tried internet explorer, firefox, and any other combination I might find....

This seems like a javascript problem, and that's unlikely since the hack uses the same javascript that regular smilies use. I don't think I can do anymore for it to work. Please ask some other user to test the hack, to check if the problem is your browser. Should the problem be the hack, and since I cannot replicate the exact setup of your forum, I'm afraid I have no way of fixing it. It's also weird, since it is working in a lot of other boards, but as with any hack, that's hardly a warranty.

Kentaurus 01-13-2007 04:38 PM

Quote:

Originally Posted by imported_Psybadek (Post 1156090)
Wheres it at, cause I dont know. Everything in the ACP is in spanish, I've managed to change the user side to English, but everything else, got no clue.

If you haven't already:
Login to ACP
Go to "Frases & Idiomas" -> "Administrador de idiomas"
Click on "Predeterminado" to some other language that is not spanish

Installing a language pack is only for changing the language :)

bollie 01-13-2007 04:56 PM

i use 3 style
3 style give eror, testing browser work good

https://vborg.vbsupport.ru/external/2007/01/4.png

https://vborg.vbsupport.ru/external/2007/01/5.png

https://vborg.vbsupport.ru/external/2007/01/6.png

TheFrienzNet 01-15-2007 01:19 PM

Thanks, this is just what I need.

SledgeHammer101 01-23-2007 08:50 PM

Hi,

I have the following error after I installed mysmilies:

when i upload an image and attach it in an posting with the [attach] code the image is shown twice in the posting. 1 in the posting where the [attach] is, and 2 in the frame for the attachment. after i deactivated mysmilies it didn't happen anymore. How can this be ?
the forum is 3.6.3

Kentaurus 01-24-2007 10:41 PM

Quote:

Originally Posted by SledgeHammer101 (Post 1165986)
Hi,


I have the following error after I installed mysmilies:

when i upload an image and attach it in an posting with the [attach] code the image is shown twice in the posting. 1 in the posting where the [attach] is, and 2 in the frame for the attachment. after i deactivated mysmilies it didn't happen anymore. How can this be ?
the forum is 3.6.3

I didn't test it in 3.6.3, although it shouldn't have a problem. Does your mysmilies keyword collides with anything in the word [attach] ?

bollie 01-26-2007 07:50 AM

Supported or not ?

Kentaurus 01-26-2007 10:04 PM

I'm sorry. After a lot of debugging I was unable to fix the error that you are getting. I can't possibly support all forum, hack and style combinations, I can only support an installation on a clean vb, and I am willing to help people fix mixed problems that could happen when something between modifications collides.

FFW 01-30-2007 07:57 PM

My members wanted this enabled for signatures so I added 2 new plugins with this code:
PHP Code:

        $GLOBALS['mysmiliesvb_userid'] = $vbulletin->userinfo['userid']; 

at the following hook locations:
  • profile_updatesignature_start
  • member_start
Not sure if this is the best way of doing it but it works.

Also Hugh created vBlogetin support for this hack. You can download the addon product here.

thincom2000 02-01-2007 11:08 PM

How many queries does this add to showthread.php?

Kentaurus 02-02-2007 02:32 AM

Quote:

Originally Posted by thincom2000 (Post 1172562)
How many queries does this add to showthread.php?

1 for getting the smilies every time bbcode_parse is called the first time. Since the post makes its way to the cache, no queries are added to showthread.

Mosh 02-09-2007 07:15 AM

Quote:

Originally Posted by apdcanari (Post 1149695)
Works 3.5 ???

Tks,

C?dric :rolleyes:

No it does not :(

But all is not lost as I have back-ported to v3.5.x and have released it here as MySmilies VB for v3.5.x :D

FFW 02-13-2007 05:59 PM

Kentaurus, could you possibly help me out and advise how I could get MySmilies working with amy's userpage mod?

abramelin 02-14-2007 04:26 PM

Can you add who is online phrase? Now it shows
"
/mysmiliesvb.php Unknown Location
/mysmiliesvb.php

Meberem 02-15-2007 08:15 PM

on my forum i have named one of smiles as : owned: (without the space after the colon) however when i go to post the message or preview it it comes up as :owned: is this a glitch or did i miss something??

Mosh 02-16-2007 03:36 AM

Quote:

Originally Posted by Meberem (Post 1183493)
on my forum i have named one of smiles as : owned: (without the space after the colon) however when i go to post the message or preview it it comes up as :owned: is this a glitch or did i miss something??

You will have to delete your custom smilie : owned: and upload it again and save as :Owned: (notice the capital O), as : o without the space is :o (default smilie in vBulletin, so default behaviour).

That is the easiest way to get around it.

Meberem 02-16-2007 08:02 AM

Quote:

Originally Posted by jdsinclair (Post 1183614)
You will have to delete your custom smilie : owned: and upload it again and save as :Owned: (notice the capital O), as : o without the space is :o (default smilie in vBulletin, so default behaviour).

That is the easiest way to get around it.

thanks and thats what i have done but will there be a way in the future to see the difference between the 2 :o and : owned: (without a space)?

NFLfbJunkie 02-17-2007 06:48 PM

When I go to insert a default vBulletin smiley in the comments area of Photoplog, the smiley shows up. But when I place a smiley from the MySmilies VB MOD, the smiley shows up before saving, but the replacement text for the smiley shows up after saving. Also, I can not use any of the smilies from MySmilies in the description of the image.

Trana 02-20-2007 12:02 AM

Here's a quick bug fix. In newer versions of PHP5, you will have problems with files that start with <?, if you use <?php it will eliminate problems for some people (myself included).

Your main file is fine but class_dm_mysmiliesvb.php needs to be changed.

Installed.

TheBlackPoet 02-20-2007 04:33 AM

i messed up... i installed it... and didnt see that the language xml was for spanish... how do i delete that language file.. because while the hack works great.. its all en espanol!!!!

4x4 Mecca 02-21-2007 03:40 AM

I'm having trouble with the images not showing. I got them to show once, but then they went back to :image:

Here's a post from one of my users
Quote:

This is too cool. Already added some! :thumb: :gun: :whack: :driving: :shame:
It shows just like that, no images. Any clues? The forum is www.4x4mecca.com/forum if that makes a difference.

I'm using 3.6.4 and a lot of other mods. Which templates might interfere with this one?

aslan 02-21-2007 12:57 PM

I've installed but when I'm trying to upload any image it says:

Warning: fopen() [function.fopen]: SAFE MODE Restriction in effect. The script whose uid is 10001 is not allowed to access /srv/www/vhosts/xyxyxy.com/httpdocs/forum/mysmiliesvb owned by uid 0 in /includes/class_dm_mysmiliesvb.php on line 168

Warning: fopen(./mysmiliesvb/mysmilie_1.gif) [function.fopen]: failed to open stream: No such file or directory in /includes/class_dm_mysmiliesvb.php on line 168

How can I handle this problem?

Thanx

*mysmilies folder is 0777 / trying to upload less than 60X60

Azhrialilu 02-23-2007 09:22 PM

Quote:

Originally Posted by Meberem (Post 1183724)
thanks and thats what i have done but will there be a way in the future to see the difference between the 2 :o and : owned: (without a space)?

change : o to : o : instead without the spaces.


All times are GMT. The time now is 04:21 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.02373 seconds
  • Memory Usage 1,845KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_php_printable
  • (17)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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