Support for SMF Tricks Themes & Mods

0 Members and 1 Guest are viewing this topic.

*
upgraders
Sniffer
Hello Daniel,  You have an amazing beautiful theme and thank you for your efforts.  I have spent most of the day reading from your replies in two different forums just to make sure my problem was not already discovered.  I saw a couple of people mention it but I think they got lost in the thread as they were never replied to. 

The problem that I have is two fold but it is in regards to the responsive image resizing.  The reseller.css has the max-width: 100% for the img tags and they  work great, except in two areas on your theme.  I, like many others are using the Ad Seller Pro from SMFhacks that uses the tables on either side of the theme pages. When using Chrome the images remain very small.  using chrome if you go to here http://www.vapeshopforum.com/index.php  and look to the right banor.  Now if you open the same page in IE the problem is gone the image is perfect, however if you try to resize the Chrome remains small but IE is not responsive. 

Now if you resize and look at a post, http://www.vapeshopforum.com/index.php?topic=5.0  the avatar gets much bigger (so in mobile this takes up a lot of room, rather than get smaller. 

I have tried editing the DIV tags and SMFHacks is also trying to figure out a solution. You are a brilliant person, so my hope lie in a solution from you.  I hope you can find the time to help as I am running out of time to get this done. 

I found several articles on the same problem.  I tried to do this http://jsfiddle.net/TAE3w/21/ and borrowed the same code since ti seems to work in the table. But eh table I think at least the TD is the problem.  If you inspect the elements on my page you can see it is exactly the same, yet the banner on the top right is super small and the SAME one on the bottom is very large.

Thanks for everything you do for SMF

Jason

« Last Edit: July 25, 2015, 08:08:18 PM by upgraders »






*
Diego Andrés
#1
Webmaster
Mmm there's a chance that the mod could work just fine using bootstrap.
Please attach index.template.php and BoardIndex.template.php of the Reseller theme
*
upgraders
#2
Sniffer
Thanks for your help. I have attached both files as you requested.

Jason
*
Diego Andrés
#3
Webmaster
Okay I have just checked the files and only Index.template.php would need a hand.
Tomorrow I'll leave the modified file as today didn't have time to properly check it.
*
upgraders
#4
Sniffer
Thanks I look forward to it!
*
Diego Andrés
#5
Webmaster
Sorry I forgot about this.

Try this file
*
upgraders
#6
Sniffer
Thanks.. SO much!  it is a lot better, but it seems to be taking up a little too much room. Ideally the forum expands to the browser size and there will be left and right areas for ads using the SMFhacks Ad seller mod.  can you take a look to see if we can get it a little bit more proportionate?  http://www.vapeshopforum.com/
*
Diego Andrés
#7
Webmaster
Ok, try this one  8)
*
upgraders
#8
Sniffer
You are awesome!  I think that fixes that issue!  Can you share what you changed?

Is there any adjustment that can be made to the Avatar on a mobile or smaller browser window.  When you shrink the window, right at the point where the content shifts, the Avatar gets very large and pixilated, until you shrink down more.  IT would be nice to be able to create a "Max-Size" that could be adjusted but keep the responsiveness.
*
Diego Andrés
#9
Webmaster
Sure
Code: [Select]
// Begin Ad Seller Pro Location - Left Side of the Forum


if (ShowAdLocation(9,0,true) || ShowAdLocation(10,0,true))
{
echo '<div class="col-md-12">';

global $sourcedir;
include_once $sourcedir . "/adseller2.php";

$adSellerAdData =  ShowAdLocation(9,0,false,5,true);
if ($adSellerAdData != false)
{
echo '<div class="col-md-2">';

echo $adSellerAdData;

echo '</div>';
}



echo '<div class="', (ShowAdLocation(10,0,false,5,true) && ShowAdLocation(9,0,false,5,true) ? 'col-md-8' : (!ShowAdLocation(10,0,false,5,true) || !ShowAdLocation(9,0,false,5,true)) ? 'col-md-10' : 'col-md-12'), '">';
}


// End Ad Seller Pro Location - Left Side of the Forum






}

function template_body_below()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;



// Begin Ad Seller Pro Location - Right Side of the Forum
if (ShowAdLocation(9,0,true) || ShowAdLocation(10,0,true))
{
echo '</div>';
global $sourcedir;
include_once $sourcedir . "/adseller2.php";

$adSellerAdData =  ShowAdLocation(10,0,false,5,true);
if ($adSellerAdData != false)
{
echo '<div class="col-md-2">';

echo $adSellerAdData;

echo '</div>';
}
echo '</div>';
}
// End Ad Seller Pro Location - Right Side of the Forum

I just used the pre-defined classes of bootstrap. Those allow you to have some kind of distributed space from 1 to 12.
For each side we are givin 2 spaces (<div class="col-md-2">content</div>) And the rest of the content would have 8 spaces but ONLY if both sides are enabled. As you are only using one side of the block (righ) I added a conditioning. So if there's only 1 block being used, the content will have 10 spaces, so it can complete the 12.
I hope that was clear  :P

About the other, I don't know if it's been already answered on the support topic in smf, so check the topic and once you're there, you can search content inside the topic selecting the "this topic" in the search bar input at the top.

And I don't know about the
*
upgraders
#10
Sniffer
thanks,  I haven't been able to find it, which is why I posted it again here.  It was asked in a long thread but never addressed.
*
Brianϟ
#11
Lead Designer
*
Diego Andrés
#12
Webmaster
I found it here http://www.simplemachines.org/community/index.php?topic=525855.msg3745023;topicseen#msg3745023
Only the first one that talks about the avatar being too big
*
upgraders
#13
Sniffer
Thanks,  I must have missed that!  thanks again for your help!! 
*
upgraders
#14
Sniffer
Re: Reseller - 8: Undefined index: sub_buttons
August 01, 2015, 02:09:50 PM
I hope not to bother you again, but I am having another problem, actually it looks as though it's been going on for a while since I first installed the Theme.  You addressed it in this post, http://smftricks.com/index.php?topic=712.0   sort of.  I am using SMFhack Menu Pro, although I am not 100% sure this is the reason.  I have no found any commonality, except that a few reference this error with the reseller theme. So I hope to reach out one last time to fix this.

If you read post #83 it also references the problem:
https://translate.google.com/translate?hl=en&sl=ru&u=http://www.simplemachines.ru/index.php%3Ftopic%3D17952.50&prev=search

 I have included what I think you might want to look at.  Subs, intext.template and the profile.english.



The errors I get are in the 1000's and they are all similar in some way and almost on every page of the forum:

Apply Filter: Only show the error messages of this URLhttp://www.vapeshopforum.com/index.php?board=10.0;sort=repliesApply Filter: Only show the errors with the same message8: Undefined index: sub_buttonsApply Filter: Only show the errors from this file File: <snip> .COM/www/Themes/default/languages/Profile.english.php (body_above sub template - eval?)
Line: 506

Apply Filter: Only show the error messages of this URLhttp://www.vapeshopforum.com/index.php?action=admin;area=logs;sa=errorlog;descApply Filter: Only show the errors with the same message8: Undefined index: sub_buttonsApply Filter: Only show the errors from this file File: D<snip> VAPESHOPFORUM.COM/www/Themes/default/languages/Profile.english.php (body_above sub template - eval?)


http://www.vapeshopforum.com/index.php?topic=2.0Apply Filter: Only show the errors with the same message8: Undefined index: sub_buttonsApply Filter: Only show the errors from this file File: D:/webspace/VAPESHOPFORUM.COM/www/Themes/default/languages/Profile.english.php (body_above sub template - eval?)
Line: 507