vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   iTrader Extension [Mainpage, Search, AND MORE] (https://vborg.vbsupport.ru/showthread.php?t=108065)

webwheeling 02-17-2006 11:18 PM

Quote:

Originally Posted by gio~logist
May i ask, do you guys have the avatars uploading in file mode or regular mode?

In the meantime, i suppose you can just leave the show avatars option as no until i find the fix.

Edit: Hopefully i will be able to release another update tommorow (friday), which will fix that as well as the "invalid user" error that you get while logged out. Besides that it's flawless i believe. However, i do want to get those fixed and plan to do so by tommorow.

I am still somewhat new to vB so I am pretty certain it is regular. It is a recent import from PHPBB2 using Impex if that helps any.

Gio~Logist 02-18-2006 06:55 PM

All errors have been fixed. Just overwrite the .xml and files. I do not think there are any bugs left. I spent a while messing with it to check.

Zip Updated With All Fixes

Afterlifer82 02-19-2006 12:56 PM

I think the avatars don't show if you have avatars that are separated into different folders, this itrader hack apparently only looks in the root of the avatars folder and not through each folder in there.

Is there any way to have the itrader menu only in the navbar for certain usergroups, any response is greatly appreciated, thanks for this hack.

Silviu 02-19-2006 03:31 PM

Try changing navbar template like this:
Code:

<if condition="is_member_of($bbuserinfo, [usergroupid1], ..., [usergroupidN])">
...Here is iTrader menu...
</if>


Gio~Logist 02-19-2006 03:31 PM

Quote:

Originally Posted by Afterlifer82
I think the avatars don't show if you have avatars that are separated into different folders, this itrader hack apparently only looks in the root of the avatars folder and not through each folder in there.

Is there any way to have the itrader menu only in the navbar for certain usergroups, any response is greatly appreciated, thanks for this hack.


It shows the avatars according to the location listed in the database. So it does www.yoursite.com/location If you installed the newest zip it should work.

Gio~Logist 02-19-2006 03:32 PM

Quote:

Originally Posted by Silviu
Try changing navbar template like this:
Code:

<if condition="is_member_of($bbuserinfo, [usergroupid1], ..., [usergroupidN])">
...Here is iTrader menu...
</if>


I made it so that only members can see it...

Afterlifer82 02-19-2006 04:21 PM

I got the avatar problem fixed by re-uploading everything but I still have the problem of the iTrader link on the navbar appearing for all members, even unregistered members. It doesn't give them all the options but it does allow them to browse the members.

Gio~Logist 02-19-2006 04:30 PM

Quote:

Originally Posted by Afterlifer82
I got the avatar problem fixed by re-uploading everything but I still have the problem of the iTrader link on the navbar appearing for all members, even unregistered members. It doesn't give them all the options but it does allow them to browse the members.


Ah yes i gave them that option. I figured why not, it wouldn't hurt. However, if you want to make it so that they can't just:

Change this:
Code:

                <!-- iTrader Extension Navbar -->
        <div class="vbmenu_popup" id="itrader_ext_menu" style="display:none">
        <table cellpadding="4" cellspacing="1" border="0">
        <if condition="$vboptions['itrader_active'] != 1">
                <tr><td class="thead"><a href="ushop.php?$session[sessionurl]">$vbphrase[itrader]</a></td></tr>       
                <tr><td class="vbmenu_option">$vbphrase[itrader] is turned off.</td></tr>
        <else />
                <tr><td class="thead"><a href="itrader_main.php?$session[sessionurl]">$vbphrase[itrader] Mainpage</a></td></tr>               
                <tr><td class="vbmenu_option"><a href="itrader_main.php?$session[sessionurl]do=search">Browse All Members</a></td></tr>
                        <if condition="$show['member']"><tr><td class="vbmenu_option"><a href="itrader_main.php?$session[sessionurl]do=findcustomer">Find A Customer</a></td></tr>
                <tr><td class="vbmenu_option"><a href="itrader_main.php?$session[sessionurl]do=findseller">Find A Seller</a></td></tr>
                <tr><td class="vbmenu_option"><a href="itrader_main.php?$session[sessionurl]do=options">Your Options</a></td></tr>
                <tr><td class="vbmenu_option"><a href="itrader.php?u=$bbuserinfo[userid]">Your $vbphrase[itrader] Profile</a></td></tr></if>
        </if>
        </table>
        </div>
                <!-- End iTrader Extension Navbar -->

To this
Code:

                <!-- iTrader Extension Navbar -->
        <div class="vbmenu_popup" id="itrader_ext_menu" style="display:none">
        <table cellpadding="4" cellspacing="1" border="0">
        <if condition="$vboptions['itrader_active'] != 1">
                <tr><td class="thead"><a href="ushop.php?$session[sessionurl]">$vbphrase[itrader]</a></td></tr>       
                <tr><td class="vbmenu_option">$vbphrase[itrader] is turned off.</td></tr>
        <else />
                <tr><td class="thead"><a href="itrader_main.php?$session[sessionurl]">$vbphrase[itrader] Mainpage</a></td></tr>               
  <if condition="$show['member']">
                <tr><td class="vbmenu_option"><a href="itrader_main.php?$session[sessionurl]do=search">Browse All Members</a></td></tr>
                        <tr><td class="vbmenu_option"><a href="itrader_main.php?$session[sessionurl]do=findcustomer">Find A Customer</a></td></tr>
                <tr><td class="vbmenu_option"><a href="itrader_main.php?$session[sessionurl]do=findseller">Find A Seller</a></td></tr>
                <tr><td class="vbmenu_option"><a href="itrader_main.php?$session[sessionurl]do=options">Your Options</a></td></tr>
                <tr><td class="vbmenu_option"><a href="itrader.php?u=$bbuserinfo[userid]">Your $vbphrase[itrader] Profile</a></td></tr></if>
        </if>
        </table>
        </div>
                <!-- End iTrader Extension Navbar -->

Mode the <if condition="$show['member']"> accordingly to reflect upon what you do not want to show.

djwins 02-19-2006 10:01 PM

Wow, this looks great!
One suggestion...

Many forums with trading allow users to create a single trade list in the form of a thread. I like what you have done with the "wants to buy, wants to sell", but I think you might want to consider adding a place for users to display a link to their main trade list.

Nice work!

Gio~Logist 02-19-2006 10:51 PM

Quote:

Originally Posted by djwins
Wow, this looks great!
One suggestion...

Many forums with trading allow users to create a single trade list in the form of a thread. I like what you have done with the "wants to buy, wants to sell", but I think you might want to consider adding a place for users to display a link to their main trade list.

Nice work!


Sounds like a nice idea. Perhaps you can elaborate more on this via PM?

ryansmith 02-20-2006 12:08 AM

The colors on the Control Panel under "Your Options" are not right. Here's a picture of the iTrader control panel next to my normal UserCP control panel. Can anyone tell me what I need to edit to make the iTrader one look like the UserCP one?

https://vborg.vbsupport.ru/external/2006/02/5.jpg

Gio~Logist 02-20-2006 12:28 AM

Quote:

Originally Posted by ryansmith
The colors on the Control Panel under "Your Options" are not right. Here's a picture of the iTrader control panel next to my normal UserCP control panel. Can anyone tell me what I need to edit to make the iTrader one look like the UserCP one?

http://www.drownedworld.net/itrader.jpg

Yes i know. That's a small problem we've been trying to fix. I'll check again today and see what i come up with.

phonexpo 02-20-2006 08:11 PM

Installed ;)

hotwheels 02-22-2006 06:55 PM

great job man.............update is working very well here, thank you

bada_bing 02-22-2006 07:36 PM

Any idea when the next relaese will be out with some of the great suggestions like ability to turn on/off the trader now sellling feature?

Gio~Logist 02-22-2006 11:50 PM

Quote:

Originally Posted by bada_bing
Any idea when the next relaese will be out with some of the great suggestions like ability to turn on/off the trader now sellling feature?

Once i get some more nice requests for features and such.


Giovanni Martinez

djwins 02-23-2006 06:09 AM

Installed! Thanks for the great extension. I'd love to help you improve on it, although you would have to do all the real work (coding). I sent you a PM with my AOL IM info.

Thanks again!

EDIT: Suggestion...When somone is viewing any itrader page, it would be ideal if the "iTrader" link in the main navbar would link back to the itrader_main page, rather than give you the url to the page you are already viewing.

djwins 02-24-2006 02:53 PM

Another suggestion: Remove banned users from Main Page (esp. Hall of Shame).

Bug fix: Join date on my profile on findseller/findcustomer/etc is listed as 12-31-1969

Gio~Logist 02-25-2006 04:02 PM

Quote:

Originally Posted by djwins
Another suggestion: Remove banned users from Main Page (esp. Hall of Shame).

Bug fix: Join date on my profile on findseller/findcustomer/etc is listed as 12-31-1969

That's a problem we pointed out as not part of the hack's fault. It shows like that because apparently you must have either added yourself via admincp or mysql as appose to registering or something else was different with your account. If it works fine for all accounts and not one or another, it's an account problem.

djwins 02-25-2006 04:06 PM

Bingo...no worries then! Thanks for the great hack...you were the reason I was able to upgrade from 3.0.x to 3.5.4!

Guest210212002 02-25-2006 04:19 PM

/me clicks install

Gio~Logist 02-25-2006 04:32 PM

Quote:

Originally Posted by Chris-777
[high]* Chris-777 clicks install[/high]

:p Thank you.

Gio~Logist 02-25-2006 04:46 PM

The UserCP navigation problem has been fixed, if you already hav this hack installed, just upload the attached file and replace the one you already have.

[high]Changelog:[/high]
2-25-06
* UserCP navigation problem has been fixed

ZIP UPDATED

Dennis B 03-14-2006 03:37 PM

Thanks Gio for another great hack.
I have to say, though, that I'd like it better if it was phrased. ;)

Gio~Logist 03-14-2006 07:36 PM

Quote:

Originally Posted by Dennis B
Thanks Gio for another great hack.
I have to say, though, that I'd like it better if it was phrased. ;)

What would you like to be phrased? I think i can phrase it up a bit. Most of the hacks i make are originally for my use and the words i put are words i'd have on my own site so at times i forget to create phrases as i myself won't need them. However, they can indeed be useful, and i will be happy to create them for this hack.

phonexpo 03-16-2006 11:43 AM

Sorry if this has been asked before, is it possible to integrate the star (https://vborg.vbsupport.ru/external/2006/03/19.gif)system with this like on eBay?

Like this seller for example - ruiloureirohttps://vborg.vbsupport.ru/external/2006/03/20.gif ( 213https://vborg.vbsupport.ru/external/2006/03/19.gif)

Gio~Logist 03-16-2006 06:50 PM

Quote:

Originally Posted by phonexpo
Sorry if this has been asked before, is it possible to integrate the star (https://vborg.vbsupport.ru/external/2006/03/19.gif)system with this like on eBay?

Like this seller for example - ruiloureirohttps://vborg.vbsupport.ru/external/2006/03/20.gif ( 213https://vborg.vbsupport.ru/external/2006/03/19.gif)

Do you mean in their postbit and profile?

Trana 03-16-2006 07:00 PM

Ack, how did I miss this hack? I will be installing this tonight, I already have iTrader and it works great.

One idea though. The other hack you are working on, the custom fields, have you thought about integrating that with this hack? The ability to use a custom field for a classifieds type forum and the ability to search in this hack for "what I am selling" seems immensely powerful. People ask for this functionality nearly every day here. I think it would be a major hit!

Trana 03-16-2006 09:09 PM

OK, my members are getting an error:

Database error in vBulletin 3.5.1:

Invalid SQL:
UPDATE user
SET itrader_buy = 'multi-color'd zoos, not green',
itrader_sell = 'chiller, sea swirl, mh pendant, bak pak...'
WHERE userid = 837;

MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'd zoos, not green',
itrader_sell = 'chiller, sea swirl, mh pendant, ' at line 2 Error Number : 1064

Gio~Logist 03-16-2006 09:31 PM

I do not normally agree to give support to people who do not click install, so i'd appreciate it if you can do that now :p

Try this in itrader_main.php

Find:
Code:

$buyerwants = strtolower($buyerwants);
Add Below:
Code:

$buyerwants = addslashes($buyerwants);

Find:
Code:

$sellerproducts = strtolower($sellerproducts);
Add Below:
Code:

$sellerproducts= addslashes($sellerproducts);
Let me know if that works.

zendiver 03-18-2006 05:36 PM

Quote:

Originally Posted by 7thgenCivic.Com
Couple things.

1. In the Options section, the colors are not right on the menu. See attachment. The options should integrate into the User CP Options area IMO.

2. In Find Customer and Find Seller and Search my Join date says 12-31-1969. Users with custom avatars, the avatars do not show up. Users with a forum avatar get the No Avatar Selected avatar.

3. Seems that all these pages do the same thing Find Customer and Find Seller and Search

4. THe advanced Search link needs to be left aligned.

5. Main page Top Traders. Need to add the % sign on the Positive feedback and add the decimal instead of rounding.

Other than that, it looks promissing.

Quote:

Originally Posted by gio~logist
1. Ah yes, i need to fix that. Not a major problem as it does not effect functionabilit. However, it should/will be fixed ASAP.
2. That could be because you added yourself via mysql and not by registering.
3. The pages do not do same thing at all. Fill out your options and have a look :p.
4. I purposesly put it right aligned. Don't see why it needs to be left aligned.
5. Added.

Gio, I have intstalled this on my testing board and have the same problem in Number #2. I am the installer of the board so I am the only member, registered. Also, if you look at your screen shots, your's also says 12-31-1969.
Got any ideas?

phonexpo 03-18-2006 11:22 PM

Quote:

Originally Posted by gio~logist
Do you mean in their postbit and profile?

Hi,

Yes in the post bit? Just like on eBay. Might be an idea for the future. :)

Thanks anyway I love this hack.

derfelix 03-19-2006 01:46 PM

Ok
I think i solved the customavatar problem.. at least on my system.
the problem is in the query.. its missing the "avatarrevision".

that is why when you build the avatar url
example the avatar for user 3 is: customavatars/avatar_3_1.gif

it will search for customavatars/avatar_3_.gif

i implemented following fix:

1. backup itrader_main.php (its more important than you think) ;)
2. find (its there three times.. do it for all 3 times):
PHP Code:

user.joindate 

3. replace with:
PHP Code:

user.joindateuser.avatarrevision 

4 save

Attention you have to do it 3 times in the file!!!

that made my customavatar appear again...

hope that helps

Felix
PS: on my localhost testboard I only have 3 users.. so i cant tell if it works in all configurations.. but it looks as it was that..

Gio~Logist 03-19-2006 02:52 PM

The latest version doesn't have any avatar problems. I have tested it several times. Please try downloading the latest zip.

The search, find customer, and find seller do not do the same thing at all. Fill in the fields What you want to buy or sell in "itrader options" and you'll see.

derfelix 03-19-2006 03:06 PM

Then there must be 2 versions around..
I downloaded it about five hours ago..
and just checked in case you had updated in the last five hours..
but no.. its the same version

and I had avatar probs ONLY with custom avatar stored in filesystem.. on a windows server...
All other avatars worked fine...

Felix

PS: to bad there arent any file version numbers.. and maybe vbulletin.org restored data from backup or some other server problem restored an older zip_file.. mind checking?

Gio~Logist 03-19-2006 03:19 PM

Quote:

Originally Posted by derfelix
Then there must be 2 versions around..
I downloaded it about five hours ago..
and just checked in case you had updated in the last five hours..
but no.. its the same version

and I had avatar probs ONLY with custom avatar stored in filesystem.. on a windows server...
All other avatars worked fine...

Felix

PS: to bad there arent any file version numbers.. and maybe vbulletin.org restored data from backup or some other server problem restored an older zip_file.. mind checking?

May i ask what happens with these avatars? They do not show? If not, what URL is it trying to pick up te avatar from and what is the correct URL?

derfelix 03-19-2006 03:39 PM

Well the custom avatar was a broken image...

the real avatar is located:
forum/customavatars/avatar3_1.gif

the url of the broken image was:
forum/customavatars/avatar3_.gif

the 1 was missing
the "1" being (thats what i saw in the code) built with $search['avatarrevision']

But the avatarrevision was not pulled in the query.. so therefore empty..

when i added it.. it worked..

Felix

Gio~Logist 03-19-2006 05:03 PM

Quote:

Originally Posted by derfelix
Well the custom avatar was a broken image...

the real avatar is located:
forum/customavatars/avatar3_1.gif

the url of the broken image was:
forum/customavatars/avatar3_.gif


the 1 was missing
the "1" being (thats what i saw in the code) built with $search['avatarrevision']

But the avatarrevision was not pulled in the query.. so therefore empty..

when i added it.. it worked..

Felix

I suppose i didn't consider that, i will update zip shortly.

derfelix 03-19-2006 05:50 PM

anyway thumbs up for that great hack! :up:
Felix

zendiver 03-19-2006 11:08 PM

Gio, also, do you have any idea why the Join Date is wrong: 12-31-69
shows for Browse All Members, Find a Customer, and Find a Seller?

If I change:
Code:

$searcher_date['datejoined'] = vbdate($vbulletin->options['dateformat'], $bbuserinfo['joindate']);
TO
Code:

$searcher_date['datejoined'] = vbdate($vbulletin->options['dateformat'], $userinfo['joindate']);
in all three places, then Find a Customer and Find a Seller displays the correct dates 10-04-04 (the day that I started the board), however, in Browse All Members, it still displays 12-31-69.


All times are GMT. The time now is 09:55 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.01722 seconds
  • Memory Usage 1,862KB
  • 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
  • (2)bbcode_php_printable
  • (16)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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