-
Posts
165 -
Joined
-
Last visited
Posts posted by iNoize
-
-
5 minutes ago, gebeer said:
@iNoize you are talking about SeoMaestro. But this is the thread for MarkupSeo module ?
Ups it was too early in the morning. ?♂️
-
12 hours ago, Ace864 said:
I don't really get how this app should work. Can someone help me, please? I recently started a new blog, and I am searching for a less costly way to promote it.
Hello,
ok so what is the problem ? Ill try to explain it short.1. Install the Module
2. Create a Field called "seo" with the type of "SeoMaestro" (Screen 1)
3. Edit your Template e.G. basic to add Seo field to the template which you heve created (Screen 2)
4. Put the code in your head from the site. (Screen 3)echo $page->seo->render();
So i hope you can understand:). The other settings you can setup in the seo field under the "Details" tab
- 1
-
Hello,
how to set the values to "Inherit defaukt value" via API ? With some tests i have now the Title is empty in the $page->seom->title.
e.G. here https://prnt.sc/t2r1vr
I have something like this. $seom is my SeoMaestro TV$seiten = $pages->find("template=basic-page, include=hidden"); foreach ($seiten as $p) { $p->of(false); if ($p->seo_title != '') { $p->seom->meta->title = $p->seo_title; }else { $p->seom->meta->title = $p->title; } $pages->save($p); }
but it does not work for me. I need to set it to default Value if its possible ?
-
46 minutes ago, Wanze said:
Hi @iNoize
It should work, here's a quote from the readme:
However, you can only use one field as placeholder for the Opengraph image, so either {images} or {immo_images}. Hope that helps!
Cheers
OK thanks, it means I have to set manually for each document where the images fiels is called immo_images.
This Module don't check also for the TV value. Example if images is empty use the next one placeholder from main config
-
Hello,
some of my sites have the Image TV called {images} and some {immo_images} if i try to define the basic value like
{images} {immo_images} it doesnt work. for images.
For descriprion is no problem but how i can solve this for images in open graph ?
Thanks.
-
Hello,
i tried to install this module. (currently MarkupSeo in USE)
created a TV called $seom applied to home template and basci page to test.
Maybe how to define the meta tags values ? Can i use the current tags from MarkupSeo or for example i want to use the summary as description.
in the sitemap i see only one entry with the home template.
The basic pages are not shown. Have I to set something specially ?Thanks
-
Hello, need some help for an RealEstate project. It have to use the OnOffice to import the objects.
-
On 9/15/2017 at 10:14 AM, maxf5 said:
Hi bernhard,
thank you for the hint. The image field is set as single element.
<td colspan="1" style="padding:15px"> <img src="<?= $page->navimg->url; ?>" width="220"/> <p><?= $page->navimg->url ?></p> </td> something between .. <?php if ($page->images->count > 0) : ?> <table> <tr> <?php $gallery = $page->images; $gallery = $gallery->slice(0,4); foreach ($gallery as $image): ?> <td> <img src="<?= $image->size(200, 200)->url ?>" width="200" height="200"/> </td> <?php endforeach; ?> </tr> </table> <?php endif; ?>
template part:
<?php $optionspdf = array( 'title' => 'Datenblatt', 'markup' => '<a class="uk-button gaming" href="{url}" download>{title}</a>', 'pageFormat' => 'A4' ); echo $modules->get('Pages2Pdf')->render($optionspdf); ?>
result:
Hello, have somebody solved it now ?
The Problem i found out is with the png .Tried it with jpg it works.
How to handle it with PNG Files ?Updated the mpdf to 6.1
-
@wbmnfktr OK I think the error is not in the pages2pdf I use to import files the ImportPages2Xml module and when the multilanguage is on then the error comes that pages2pdf
Fatal Error: Uncaught TypeError: Argument 2 passed to Pages2Pdf::getPDFFilePath() must be an instance of Language, instance of ProcessWire\Language given, called in /usr/www/users/ulmmsc/2018cms/site/modules/Pages2Pdf/Pages2Pdf.module on line 177 and defined in /usr/www/users/ulmmsc/2018cms/site/modules/Pages2Pdf/Pages2Pdf.module:259
-
@wbmnfktr
ok thats really embrrassing now.With the Templates I was in the wrong path. The module path not the template.
With the multilanguage i installed not the profile only the module (part of PW Multilanguage Support )
But thanks a lot for the HELP. Now it works with the PDF files without multilanguage.
-
Thanks for the fast answer. So i try to describe the situation.
I have installed the module. CURRENTLY SITCHED OFF THE MULTINLANGUAGE SUPPORT ON PW
ProcessWire 3.0.126 © 2019
PHP 7.2So now if i try to change the templates in /site/modules/Pages2Pdf/default_templates
for exampledefault.php <h1><?= $page->get('headline|title') ?></h1> <p><?= $page->body ?></p> <?php if (count($page->immo_images)): ?> <?php foreach ($page->immo_images as $image): ?> <div class="image"> <img src="<?= $image->size(400, 400)->url ?>" alt="<?= $image->description ?>" /> </div> <?php endforeach; ?> <?php endif; ?> _header.php <?php /* * Pages2Pdf default header markup * Styles defined in styles.css file * * You can use {PAGENO} for the current page number and {nbpg} for the total of pages * */ ?> <div class="head">Test </div> Hier kommt EXPOSE <hr> Hallo WELT
Then try to generate the file on the site
$options = array( 'title' => 'Expose als PDF', 'markup' => '<a href="{url}" target="_blank" class="btn button-sm border-button-theme col-lg-12 col-md-12 col-xs-12 margin-b-10" >{title}</a>', //'page_id' => '', // Pass a page ID if you want to download the PDF for another page ); echo $modules->get('Pages2Pdf')->render($options);
nothing happens.
It generates always the same PDF see as attached.
There is the standart header and footer.
Also on the content is the standart code.
THE CACHE IS ON 1 -
Guys I'm really desperate. The templates can not be changed, I have no idea why. Not the headers or not the default it always stays the same.
It also does not work with Multilanguage. Is nobody there who can help me?
-
Hello I get this Error if I try to Execute ImportPagesFrom XML
Fatal Error: Uncaught TypeError: Argument 2 passed to Pages2Pdf::getPDFFilePath() must be an instance of Language, instance of ProcessWire\Language given, called in /usr/www/users/ulmmsc/2018cms/site/modules/Pages2Pdf/Pages2Pdf.module on line 177 and defined in /usr/www/users/ulmmsc/2018cms/site/modules/Pages2Pdf/Pages2Pdf.module:259
Language Support is installed.
Also is Multilanguage Checked in the pages2PDF Module
-
10 minutes ago, dab said:
I used this to get the access token:
https://api.instagram.com/oauth/authorize/?client_id=CLIENT-ID&redirect_uri=https://www.yourdomainhere.co.uk/processwire/module/edit?name=InstagramFeed&response_type=code
1. Replace CLIENT-ID with your own CLIENT-ID code
2. I removed the trailing slash off suggested code on Processwire Module instructionshttp://page.dev/processwire/module/edit?name=InstagramFeed/
Works OK for me, but I am getting error code "[InstagramFeed]: No user" too, but otherwise feed working OK.
Hmm Strange
get still
{"error_type": "OAuthException", "code": 400, "error_message": "Only response type \"code\" and \"token\" is allowed"}
OKAY IT WORKS. There was a empty space on the end from URL
Thanks a lot
- 1
-
Has nobody the same problem with this module? I think instagram changed the Api or something?
-
hey together, for few days i have some trouble with this Module
Quote{"error_type": "OAuthException", "code": 400, "error_message": "Invalid scope field(s): public_content"}
I cant find the error. Also Updatet the language as @AndZyk told the post before. Anybody else the same problem ?
-
On 8/1/2019 at 4:06 PM, abmcr said:
I Think the problem is for the app not approved
Yes I think also, but i have approved me then the company and dont know what facebook need more ?
is there some steb by step guide or something else ?
-
Hello,
i have imported locations as seperate variables
longtitude and latitude
How to use the module with this templatevars ?
Can anybody give me an example from scratch ? I have to add the css and js files manuelly ? And the how to call the map ?Thanks
-
43 minutes ago, flydev said:
Don't really work for me with the 1 in the cache. I'll try to update mpdf and set php to 7.3 maybe then.
EDIT: Ok the latest mpdf have other filestrukture i think i cant replace the folder so easy also i will stay at 6.1 but i cant see my custom template files. Where could the problem be ?
-
22 hours ago, flydev said:
Hi @iNoize
inside the Pages2Pdf folder module, rename the folder mpdf to mpdf.old then paste the folder mpdf-master downloaded from Github inside the Pages2Pdf folder and rename it to mpdf; Refresh the module.
That it.
FYI: This workaround worked without any issue with mPDF 6.1.0 in 2018.
Thanks now it works Which PHP Version schould I use ? I I want the 7.3 I have to take the latest mpdf ??
EDIT: Have stiill problems. If I edit something in the default_templates the Module dont use the new changes ?
Something with cache or how can i change this ? Also tried to delete the module folder in the cache but where the module take the basic changes again ? -
Can anybody help me with this FB Problem ?
-
On 2/19/2018 at 5:04 PM, flydev said:
Anyone already tried the module with admin page/Process modules ?
I can get it working, but only by hacking the module.
Not surprised here, did you tried with another var name ? ($page is a reserved word in ProcessWire)
@Wanze With PHP-7.0.10 I get those warning :
Edit: fixed by replacing mpdf with the version 6.1
How to replace ? Ive downloaded the latest mpdf but which files i have to replace in the Modules Folder ?
-
Hello i have some wizzard and the radio group is always empty ?
Do i make something wrong ?This is the Formexample
<div class='tab-pane' id='type'> <h5 class='info-text'>Welchen Immobilientyp möchten Sie bewerten. </h5> <div class='row'> <div class='col-sm-12 '> <div class='col-sm-3 col-xs-6 '> <div class='choice' data-toggle='wizard-radio'> <input type='radio' name='imoart' value='Ein/Zweifamilienhaus'> <div class='card card-checkboxes card-hover-effect'> <i class='lnr lnr-home'></i> <p> Ein-/ Zweifamilienhaus</p> </div> </div> </div> <div class='col-sm-3 col-xs-6 '> <div class='choice' data-toggle='wizard-radio'> <input type='radio' name='imoart' value='Fertighaus / Fachwerkhaus'> <div class='card card-checkboxes card-hover-effect'> <i class='ti-home'></i> <p>Fertighaus / Fachwerkhaus </p> </div> </div> </div> <div class='col-sm-3 col-xs-6 '> <div class='choice' data-toggle='wizard-radio'> <input type='radio' name='imoart' value='Doppelhaushälfte / Reihenhaus'> <div class='card card-checkboxes card-hover-effect'> <i class='ti-home'></i> <p>Doppelhaushälfte / Reihenhaus </p> </div> </div> </div> <div class='col-sm-3 col-xs-6'> <div class='choice' data-toggle='wizard-radio'> <input type='radio' name='imoart' value='Grundstück'> <div class='card card-checkboxes card-hover-effect'> <i class='ti-package'></i> <p>Grundstück</p> </div> </div> </div> </div> </div> </div>
This is my code to get the values
$art = $sanitizer->text($input->post->imoart);
But its always empty ?
What do i wrong ? Thanks
-
On 7/9/2016 at 11:45 AM, flydev said:
$captcha = $modules->get("MarkupGoogleRecaptcha"); // if submitted check response if ($captcha->verifyResponse() === true) { $out .= "Hi " . $input->post["name"] . ", thanks for submitting the form!"; } else { $out .= "<form method='post' action='{$page->url}'>\n" . "\t<input type='text' name='name'>\n" . $captcha->render() // render reCaptcha . "\t<input type='submit'>\n" . "</form>\n"; $out .= $captcha->getScript(); } echo $out;
Hello, can anyone sho thw right example ? The one with plain HTML doesnt work.
And i really dont understand why ??
Parse Error: syntax error, unexpected '}' (line 26 of /usr/www/xxxxx/site/templates/contact.php)
Loading Problems on my PW Sites
in General Support
Posted
Hello,
i dont know what happendet.
But my PW Websites need sometimes 20 - 30 Seconds to load ?
I cant find the reason why.
If the site is loaded the first time then all seems to be OK. But the first visit is an torture.
Example
www.krohnluedemann.com
Please help.
Tnx