To use this website completely, it is necessary to store cookies on your computer.
 

* Navigator

Expand - Collapse

* Statistic

  • *Total Posts: 14944
  • *Total Topics: 2271
  • *Online Today: 10
  • *Most Online: 292
(2016 November 12, 09:37:31 am)

PortaMx copyright

Started by b4pjoe, 2010 November 12, 05:50:56 am

previous topic - next topic

0 Members and 0 Guests are viewing this topic.

b4pjoe

2010 November 12, 05:50:56 am
A small issue but I do not have the PortaMx copyright on my front page of my forum. It shows up on all pages except the front page. Is this normal?

b4pjoe

#1
2010 November 12, 05:52:11 am
Just to add...this is SMF 2.0 RC4 and PortaMx v0.990.

b4pjoe

#2
2010 November 12, 07:22:35 am
OK, the copyright is back on the front page after an uninstall of PortaMx and a re-install of it.

b4pjoe

#3
2010 November 12, 07:35:00 am
LOL...and now it is gone again. :o

It seems that with the AEVA code commented out in the two AEVA files discussed here https://www.portamx.com/topic_2092.0.html, and with the php block for the AEVA gallery enabled on the front page, that the PortaMx copyright disappears from my front page. If I disable that php block on the front page the PortaMx copyright code comes back.

:D :( :'(

feline

#4
2010 November 12, 05:07:27 pm
I think eava scumble with the integrate buffer handling .. if the copyright not shown, the portal don't work correct,

Fel
Many are stubborn in relation to the path, a few in relation to the target.

b4pjoe

#5
2010 November 12, 06:29:44 pm
It displays everywhere except the page where the php block is which is the front page and when displaying the 2 albums that came up blank before modifying the code shown in this thread. https://www.portamx.com/topic_2092.0.html

Here is the code used in the php block.

Code Select
global $sourcedir;
     loadLanguage('Aeva');
     require_once($sourcedir . '/Aeva-Subs.php');
//     echo '<strong><center>(Click thumbnail to enlarge. Then click Zoom to view full size.)</center></strong> ';
     echo aeva_listItems(aeva_getMediaItems(0, 16, 'RAND()', true, array(10)), true, 'center', 0);

feline

#6
2010 November 13, 12:31:56 am
As along this posting (https://www.portamx.com/topic_2096.msg11957.html#msg11957) I think, this is the problem.

So you can do follow:
Look with phpMyAdmin on the you database, the table smf_settings.
Trey to find the entry integrate_buffer (select * from smf_settings where variable like 'integrate_buffer')
if you see a ob_portamx, remove that.

Edit the file /Soures/PortaMx/PortaMx.php
find;
Code Select
// save existin hook and tell SMF our handler
$context['pmx_integrate_buffer'] = (!empty($modSettings['integrate_buffer']) ? $modSettings['integrate_buffer'] : '');
$modSettings['integrate_buffer'] = 'ob_portamx';

replace with:
Code Select
// tell SMF our handler
add_integration_function('integrate_buffer', 'ob_portamx', false);

Save it.

Edit the file /Sources/PortaMx/LoadData.php
find:
Code Select

if(!empty($context['pmx_integrate_buffer']))
$buffer = $context['pmx_integrate_buffer']($buffer);

remove the code and save.

Now you can test again.

Fel
Many are stubborn in relation to the path, a few in relation to the target.

b4pjoe

#7
2010 November 13, 12:59:07 am
Thanks. I'll give it a try.

b4pjoe

#8
2010 November 13, 02:12:21 am
When I run the SQL query (select * from smf_settings where variable like 'integrate_buffer') it does not find anything named ob_portamx. See attached image.

Changing the code as suggested for /Soures/PortaMx/PortaMx.php and /Sources/PortaMx/LoadData.php had no effect. The copyright is still missing on the front page and the 2 albums that were displaying blank to start with. I tried it both ways, ie...the two AEVA files with the code in them and the code commented out.

[attachment deleted by admin]

feline

#9
2010 November 13, 04:56:53 am
In this case I can't help, sorry.
PortaMx follow exactly the programming restrictions they given for mods by SMF.

If a other mod drops the integration hooks, then this is a heave bug and many other mods (all portals I think, SimpleSEF and more) don't work.

So you have to call the author of this mod.
As a note .. PortaMx adds the hook only temporary.

Ahh .. and a last check you can make ..
Add the string ob_portamx in the table as I say above.

Fel


Many are stubborn in relation to the path, a few in relation to the target.

b4pjoe

#10
2010 November 13, 07:19:31 am
Thanks for the help feline. I am 99% sure that this particular issue is with AEVA 1.4b as the 2 albums that do not show the PortaMx copyright are both albums that have video files in them. If I remove the video files from the album the PortaMx copyright shows up.

I still haven't figured out why the copyright is missing from the front page because the php block showing the AEVA gallery does not contain any video files but if I disable that block the copyright shows fine so I'm fairly certain that is being caused by AEVA as well.


Edited to add. It's embedded files that reside on remote servers that causes the issue. If you upload a file directly into the album there is not a problem. It's not just albums though. If there are posts with embedded files they also display as blank white pages.

As final tests I uninstalled AEVA 1.4b and PortaMx worked fine. All copyrights were where they should be. So then I un-installed PortaMx and re-installed AEVA. All of the albums displayed fine. Even those that have embedded video files from sites like youtube. Then I re-installed PortaMx and the problems returned. Blank white pages for those albums with embedded video and if I edited the 2 AEVA files as mentioned I can display those albums and front page but the PortaMx copyright is missing. At this point I'm just going to not upgrade my SMF 2.0 RC3 site because I don't want to have to do without either PortaMx or Aeva.

feline

#11
2010 November 13, 05:36:26 pm
Thanks for checking and reporting. I think you have to call nao/gilles about this problem.

Fel
Many are stubborn in relation to the path, a few in relation to the target.

b4pjoe

#12
2010 November 13, 05:48:36 pm
I have posted it in the AEVA support topic at SMF but Nao is banned from there so he won't see it and at his site he will only do support for the paid version of AEVA. Hopefully someone at SMF might be able to help.

feline

#13
2010 November 13, 08:56:30 pm
That's fantastic .. a mod on SMF without a author/helper/supporter ..  ;D

Fel
Many are stubborn in relation to the path, a few in relation to the target.

b4pjoe

#14
2010 November 13, 08:59:36 pm
Yes I know. It's too bad there isn't a suitable gallery mod for SMF other than AEVA. :-[

Garry1953

#15
2010 November 14, 07:34:28 am
Quote from: feline ,  2010 November 13, 08:56:30 pm
That's fantastic .. a mod on SMF without a author/helper/supporter ..  ;D

Fel


I think Feline know why.... ;)
A fork or a knife, I wonder which it is. hahahahaha.
Anyway, I wish them luck with their new project.

b4pjoe

#16
2010 November 14, 05:15:00 pm
At the risk of "beating a dead horse...

Commenting the line of code below from aeva-subs.php and aeva-embed.php does solve the blank white page issue...

Code Select
ob_start($obs && ($obs['name'] != 'default output handler') ? $obs['name'] : null);

However I still have an issue with the PortaMx copyright being missing on all pages that contain embedded links. If I disable the AEVA Auto-Embed feature I do have the PortaMx copyright. The problem is that AEVA only displays it's own Embedding copyright on pages that have embedded links. Therefore if I disable  the AEVA Auto-Embed feature I see the PortaMx copyright. If I enable the AEVA Auto-Embed feature then the AEVA copyright replaces the PortaMx copyright. See attached images.

[attachment deleted by admin]

b4pjoe

#17
2010 November 14, 11:53:57 pm
I posted a message at noisen.com for Nao about this issue and he replied:

Quote from: Nao/Gilles
This has been discussed within the private area already...
I don't know what exact output buffer conflicts with my resetter code, though. It's obviously linked to feline's on-the-fly addition of her copyright notice.

feline

#18
2010 November 15, 08:03:08 pm
He hade me, because I have disagree to the SMF fork  ::)

Fel
Many are stubborn in relation to the path, a few in relation to the target.

b4pjoe

#19
2010 November 15, 08:13:49 pm
Yes, I know about the issues between Nao and the SMF team. Unfortunate really.

BurakG

#20
2010 November 17, 10:05:11 am
And one problem I have with PortaMx copyright is it is always centered. Can we have it left alligned as I have to put my copyright to left side of the site ?

So any solution to AEVA copyright overlapping PortaMX on video embedded pages ?
Destiny. The design is clearly Ancient ..

http://www.mazdaclubtr.com
http://www.subaruclubtr.com

feline

#21
2010 November 17, 03:07:19 pm
The copyright stay in the same section as the SMF copyright and this section (id footer_section) is centered.

Fel
Many are stubborn in relation to the path, a few in relation to the target.

BurakG

#22
2010 November 17, 05:25:11 pm
Not for the theme I use. ( DzinerStudio - DSv4 )

http://www.mazdaclubtr.com/index.php
Destiny. The design is clearly Ancient ..

http://www.mazdaclubtr.com
http://www.subaruclubtr.com

b4pjoe

#23
2010 November 17, 07:53:46 pm
Speaking of the PortaMx copyright. In v0.980-1 there was a setting for where to place the copyright. It is missing from my v0.990 settings. Has it moved or was it taken out? See attached images.

[attachment deleted by admin]

feline

#24
2010 November 18, 12:03:07 am
Yes, this we have removed ..

Fel
Many are stubborn in relation to the path, a few in relation to the target.